package com.example.doc.service;

import com.example.doc.mapper.TrainMapper;
import com.example.doc.model.Train;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TrainService {

    @Resource
    TrainMapper trainMapper;

    public List<Train> getTrainAll(){
        return trainMapper.getTrainAll();
    }

    public Integer addTrain(Train train){
        return trainMapper.addTrain(train);
    }

}
